<?php

class programador extends usuario {

    protected $reputacion;
    protected $tipo;
    protected $usuario;
    var $components = array();
    var $auxiliars = array();

    public function attributes() {
        return array("reputacion" => array(), "tipo" => array(), "usuario" => array("foreign_name" => "u_p", "foreign" => "usuario", "foreign_attribute" => "cedula"));
    }

    public function primary_key() {
        return array("usuario");
    }

    public function relational_keys($class, $rel_name) {
        switch ($class) {
            case "usuario":
                switch ($rel_name) {
                    case "u_p":
                        return array("usuario");
                        break;
                }
            default:
                break;
        }
    }

}

?>